package branch.feature.coco_camera

import android.os.Bundle
import com.example.mynewsapp.R
import com.qw.photo.CoCo
import com.qw.photo.callback.CoCoAdapter
import com.qw.photo.pojo.TakeResult


class CocoCameraActivity : BaseToolbarActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)


        setContentView(R.layout.activity_coco_camera)


        CoCo.with(this@CocoCameraActivity)
            .take(createSDCardFile())
            .start(object : CoCoAdapter<TakeResult>() {
                override fun onSuccess(data: TakeResult) {

                }
            })
    }
}